#pragma once
#include "DataAccesser.h"
#include "DataMessage.h"

namespace _FOGGE_
{
	namespace _GDB_
	{
		class DataUpdater:
			protected DataAccesser
		{

	
		public:
			DataUpdater::DataUpdater(void)
			{
			}

			DataUpdater::~DataUpdater(void)
			{
			}

			//! Get a new datamessage for data notification.
			/*!
			\param MsgID dataid
			*/
			DataMessage* GetNewDataMessage(UINT MsgID)
			{
				return i_GDBAccesser->GetNewDataMessage(MsgID);
			}

			//! notify data's modification to all associated modules
			/*!

			\param ptrMSG A data message's pointer containing modification info
			*/
			void NotifyDataModification(DataMessage* ptrMSG)
			{
				i_GDBAccesser->NotifyDataModification(ptrMSG);
			}

		};
	}
}